﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 员工学习经历
/// </summary>
public class SysPersonEducation : BasePoco
{
    [Display(Name = "员工ID", Description = "关联员工主键", GroupName = "基本信息")]
    public Guid? PersonId { get; set; }

    [Display(Name = "员工", Description = "关联的员工实体", GroupName = "基本信息")]
    public SysPerson Person { get; set; }

    [Required]
    [Display(Name = "学校", Description = "就读学校名称", GroupName = "教育信息")]
    [StringLength(128)]
    public string School { get; set; }

    [Display(Name = "专业", Description = "所学专业名称", GroupName = "教育信息")]
    [StringLength(128)]
    public string Major { get; set; }

    [Display(Name = "学历", Description = "获得的学历层次", GroupName = "教育信息")]
    public EducationLevel? EducationLevel { get; set; }
    
    [Display(Name = "学制", Description = "学制类型", GroupName = "教育信息")]
    public EducationType? EducationSystem { get; set; }

    [Display(Name = "入学日期", Description = "入学的日期", GroupName = "教育信息")]
    public DateTime? EnrollmentDate { get; set; }

    [Display(Name = "毕业日期", Description = "完成学业的日期", GroupName = "教育信息")]
    public DateTime? GraduationDate { get; set; }
    
    [Display(Name = "学历附件", Description = "学历相关的附件文件", GroupName = "附件信息")]
    public List<SysPersonEducationFile> Attachments { get; set; }
}